<template>
  <Tabs @on-click="clickTabPane" :animated="true">
    <TabPane name="testcaseResult" label="用例结果">
      <TestcaseResult ref="testcaseResult"></TestcaseResult>
    </TabPane>
    <TabPane name="testsuiteResult" label="场景结果">
      <TestsuiteResult ref="testsuiteResult"></TestsuiteResult>
    </TabPane>
  </Tabs>
</template>

<script>
import TestcaseResult from "@/view/components/HttpAutoTestService/testcase-result";
import TestsuiteResult from "@/view/components/HttpAutoTestService/testsuite-result";

export default {
  name: "test-result",
  components: {
    TestcaseResult,
    TestsuiteResult,
  },
  methods: {
    clickTabPane(val) {
      this.$refs[val].search();
    },
  },
};
</script>

<style scoped>
</style>
